package Pieces;

import java.awt.Color;

public enum BlockType {
	RED(Color.RED), BLUE(Color.BLUE), GREEN(Color.GREEN), YELLOW(Color.YELLOW), ORANGE(Color.ORANGE),
	PURPLE(new Color(255,0,255)),BLACK(Color.BLACK), NONE (Color.WHITE);
	
	private Color c;
	
	private BlockType(Color c) {
		this.c = c;
	}
	
	public Color getBlockColor() {
		return c;
	}
	
	public String toString(){
		if(c == Color.RED)
			return "RED";
		else if(c==Color.BLUE)
			return "BLUE";
		else if(c==Color.GREEN)
			return "GREEN";
		else if(c==Color.YELLOW)
			return "YELLOW";
		else if(c==Color.ORANGE)
			return "ORANGE";
		else if(c==Color.WHITE)
			return "WHITE";
		else if(c==Color.BLACK)
			return "BLACK";
		else
			return "PURPLE";
	}
}
